package demo01;

class Fu {
    int num = 5;
}

class Zi extends Fu {
    int num1 = 6;

    public void PrintNumber() {
        System.out.println("Fu num:" + num);
        System.out.println("Zi num:" + num1);

    }
}

public class ExtendDemo02 {
    public static void main(String[] args) {
        Zi z = new Zi();
        z.num = 8;
        z.PrintNumber();
    }
}
